/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package frmwrk.core;

import frmwrk.interfaces.IOrganization;
import java.util.HashMap;

/**
 *
 * @author Damian
 */
public class Organization extends Party implements IOrganization {
    
//    ArrayList<Person> persons = new ArrayList<Person>();
    
    HashMap<String, Person> persons = new HashMap<String, Person>();
    Person person;

    public Organization(String name_, String street_, String city_, String state_, String zip_, String email_) {
        super(name_, street_, city_, state_, zip_, email_);
    }
    
    @Override
    public void addPerson(Person person){
        
        persons.put(person.getEmail(), person);
        
    }
    
    @Override
    public Person getPerson(String email){
        person = persons.get(email);
        return person;
    }
    
}
